#ifndef _CANBUS_TOOL_H_
#define _CANBUS_TOOL_H_
#include "netTool.h"

class canbusTool{
public:
    canbusTool(cmdWorker* worker,int devID);
    ~canbusTool();

    int canbusInit(std::string devName);
    int canbusSend(const uint8_t* data,int size);
    int canbusClose();
    
    int setFilterOption(int filterID);

private:
    int canbusID;
    int socketCan;
    cmdWorker* parser;
};


#endif